//Mon May 24 19:47:10 CDT 2010
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>

using namespace std;

class CuttingGlass
{
public:
	int pieces(int W, int H, int startx, int starty, vector<string> program)
	{
		vector<vector<int> > v(W+1, vector<int> (H+1, 1));
		int x = startx;
		int y = starty;
		for (int i = 0; i < program.size(); i++)
		{
			for (int j = 0; j < program[i].size(); j++)
			{
				if (program[i][j] == 'U')
					y--;
				else if (program[i][j] == 'D')
					y++;
				else if (program[i][j] == 'R')
					x++;
				else if (program[i][j] == 'L')
					x--;
				v[x][y] = 0;
			}
		}
		int count = 0;
	}
};
